Visual Basic program "VB Hubble" - Description and operation

Contents

Introduction and Purpose

The purpose of the Visual Basic program "VB Hubble" is:
  1. To demonstrate Hubble's Law. This is done by means of a binary star system of two "large" stars and a third smaller star
  2. To demonstrate the behaviour how a third star can influence the behaviour of a binary star system.
    In a wider perspectif this can also be seen of how stable a binary star system is.
    To download an executable select: VB Hubble.zip
    This zip file contains 1 program: VB Hubble.exe" is written in Visual Basic 5.0. For more information goto: Implementation details


Description

The Visual basic program program "VB Hubble" consits of 3 Forms (or displays):


Operation - Control Form

Operation of the program is done from the Control Form.
Forward Backward
Picture 1A
Forward Backward
Picture 1B
Picture 1A Shows the initial display.
This dispay shows 3 Commands: Start, End and Stop. This depends about were you are during program execution. After startup the Control Form shows 6 Parameters which can be selected: tdelta, alpha left, alpha right m #3, init v #3 , disp max , The Control display also shows the following additional parameters:


Display Form

The "Display Form" shows the result of the simulation.
In the center of the display the two large objects are rotating, counter clockwise, around each other.
With the parameter alpha is equal to zero, m1 starts from the left in red at 9 o'clock and m2 from the right in green at 3 o'clock. m3 always comes from the right in black.
Picture 2A
Picture 2A shows one result of the standard simulation with the parameters of Picture 1A.
  • The parameter m1 = 1000, m2 = 1000 and m3 = 1.
  • The parameter alpha is 160 degrees.
  • The black dot in the center is the center of gravity of the binary pair.
With the parameter alpha is equal to 160, m1 starts at roughly 4 o'clock in red and m2 in green at 10 o'clock.
Object m3 comes in from the left below the escape velocity in black.
When m3 approaches the center of the binary pair its speed increases above the escape velocity. This is indicated by the red color. At that moment m1 in red is at roughly 12 o'clock. Because m3 is closer to m1 than towards m2 its path will be bended towards roughly 11 o'clock
The speed of m3 decreases, goes below the escape velocity and the color changes back to black.
Because the speed goes below the escape velocity it will again be atracted towards the binary pair.
The whole process repeats itself but now roughly at 5 o'clock.
And again but now roughly at 1 o'clock. The simulation stops because of distance limitation and after 3 revolutions of the binary pair.
Picture 1A shows the initial and final results of the control form
Picture 2B
Picture 2B shows one result of the standard simulation with the parameters of Picture 1B.
  • The parameter m1 = 1000, m2 = 500 and m3 = 50.
  • The parameter alpha is 240 degrees.
With the parameter alpha is equal to 240, m1 in red starts at roughly 1 o'clock and m2 in green at roughly 7 o'clock green.
Object m3 comes in from the left in black. Is reflected first by m2 in green and moves towards 6 o'clock and than moves back towards the center towards m1 in red.
This whole interplay between the three objects continues for at least 10 revolutions and maybe forever.

The interesting part of this simulation is that the speed of m3 always stays below the escape velocity. Picture 1B shows the initial and final results of the control form

Picture 2C
Picture 2C shows:
  • The parameter alpha is 190 degrees.
  • The parameter m1 = 1000, m2 = 500 and m3 = 50
    .
With the parameter alpha is equal to 190, m1 in red starts at roughly 1 o'clock and m2 in green at roughly 7 o'clock.
Object m3 comes in from the left in black. Is first atracked towards m1 in red. The path makes always a complete circle around m1 and is then atracked towards m2 in green. Its speed increases above the escape velocity and m3 (now in read) leaves the binary pair.

What is interesting about this simulation is that its brings the two binary stars in close approximation.


Print Form

Picture 3A
Picture 3B
Picture 3A Shows the results of the simulations for alpha going from 30 to 50.
Picture 3B Shows the results of the simulations for alpha going from 180 to 190.


Program Evaluation Hubble's Law

3 Objects m0, m1 and m2 Demonstration
Delta time  0,001  init v3 0,9 # stars  3 alpha  0  m1  1000  m2  1000  m3  1 
Alpha   0 v3  2.987 vesc  1.242 r3 2589 dist12  198.2  199.8  201.1 time 1190 end  2
Alpha  10 v3  1.356 vesc  1.559 r3 1651 dist12  198.5  200.0  201.3 time 1192 end  3
Alpha  20 v3  0.973 vesc  1.669 r3 1440 dist12  198.6  200.1  201.4 time 1193 end  3
Alpha  30 v3  0.473 vesc  1.889 r3 1127 dist12  198.8  200.1  201.3 time 1193 end  3
Alpha  40 v3  3.598 vesc  1.524 r3 1726 dist12  198.2  199.9  200.8 time 1191 end  2
Alpha  50 v3  1.432 vesc  1.328 r3 2262 dist12  199.4  199.9  200.4 time 1191 end  2
Alpha  60 v3 23.811 vesc 24.880 r3   96 dist12  199.9  199.9  200.0 time  113 end  1
Alpha  70 v3 24.702 vesc 21.633 r3  103 dist12  199.9  200.0  200.0 time  110 end  1
Alpha  80 v3  3.706 vesc  0.958 r3 4355 dist12  198.7  199.4  200.1 time 1187 end  2
Alpha  90 v3  3.261 vesc  1.011 r3 3913 dist12  198.9  199.5  200.2 time 1188 end  2
Alpha 100 v3  2.734 vesc  1.084 r3 3406 dist12  199.1  199.6  200.3 time 1189 end  2
Alpha 110 v3  2.093 vesc  1.036 r3 3727 dist12  199.2  199.8  200.3 time 1587 end  2
Alpha 120 v3  1.522 vesc  1.312 r3 2324 dist12  199.4  199.9  200.4 time 1191 end  2
Alpha 130 v3  0.689 vesc  1.545 r3 1680 dist12  199.5  199.9  200.5 time 1192 end  3
Alpha 140 v3 24.867 vesc 24.780 r3  103 dist12  199.5  200.0  200.6 time 1537 end  1
Alpha 150 v3  0.652 vesc  1.825 r3 1201 dist12  199.0  200.1  201.1 time 1590 end  3
Alpha 160 v3  0.755 vesc  1.904 r3 1098 dist12  199.3  200.1  200.8 time 1988 end  3
Alpha 170 v3  3.546 vesc  1.211 r3 2729 dist12  198.4  199.7  200.9 time 1189 end  2
Alpha 180 v3  2.987 vesc  1.242 r3 2589 dist12  198.2  199.8  201.1 time 1190 end  2
NEXT TEST ? 

Table 1
  1. The parameter Alpha shows the initial angle between object m1 and m2 of each simulation. After each simulation the angle alpha is increased with 10 degrees. The results of alpha = 0 and alpha = 180 should be identical because the masses of both are identical.
  2. The parameter end shows how the simulation ended.
    • When parameter end is 1 there was a collision. This happened in 7 cases.
    • When parameter end is 2 the final speed of m3 was larger as the escape velocity. This happened in 10 cases.
    • When parameter end is 3 the final speed of m3 is smaller as the escape velocity. This happened in 2 cases.
      This means that if the simulation continues m3 will again approach the bianry star system.
    • When parameter end is 4 the third object is captured by the binary star system. For an example see below.
  3. The parameter v3 shows the final speed of m3.
  4. The parameter vesc shows the escape speed of m3.
    In three cases v3 is much higher as the escape velocity at the end of the simulation. This are the lines in red.
  5. The parameter r3 shows the final distance of object m3 from the center.
    In the situation when there is a collision the final distance is 100 because the distance between m1 and m2 is 200.
  6. The parameter dist12 shows three values: the minimum, thhe average and the final distance between m1 and m2.
  7. The parameter time shows the duration of the simulation.
    The value is equal to the parameter "Lcycle" times the parameter "d time"


Program Evaluation - Stability considerations

In order to test the stability issue the masses of the three objects are respectivily 1000, 500 and 50.
The following table shows the results:
3 Objects m0, m1 and m2 Demonstration
Delta time  0,001  init v3 0,9 # stars  3 alpha  0  m1  1000  m2  500  m3  50 
Alpha   0 v3  0.912 vesc  1.266 r3 1881 dist12  166.7  197.3  229.0 time 1318 end  3
Alpha  20 v3  1.503 vesc  1.127 r3 2353 dist12  163.4  190.6  217.7 time 1254 end  2
Alpha  40 v3  2.176 vesc  1.028 r3 2819 dist12  152.6  182.0  208.5 time 1165 end  2
Alpha  60 v3 24.296 vesc 20.827 r3  103 dist12  199.5  199.8  201.9 time  133 end  1
Alpha  80 v3  1.797 vesc  1.068 r3 2602 dist12  160.8  188.0  214.0 time 1231 end  2
Alpha 100 v3  0.850 vesc  1.250 r3 1892 dist12  173.2  197.9  223.3 time 1336 end  3
Alpha 120 v3  3.712 vesc  2.773 r3  371 dist12  182.2  209.3  239.3 time 1465 end  3
Alpha 140 v3  0.197 vesc  1.499 r3 1304 dist12  146.9  213.1  263.6 time 1917 end  3
Alpha 160 v3  1.458 vesc  1.211 r3 2082 dist12   98.5  220.8  290.7 time 1430 end  2
Alpha 180 v3  1.602 vesc  1.146 r3 2296 dist12   92.3  219.6  288.9 time 1409 end  2
Alpha 200 v3  1.680 vesc  1.120 r3 2387 dist12   92.6  217.4  285.1 time 1387 end  2
Alpha 220 v3 15.854 vesc 14.850 r3  112 dist12  190.9  201.0  228.3 time  256 end  1
Alpha 240 v3  2.158 vesc  4.218 r3  255 dist12  163.4  243.7  314.0 time 6284 end  4
Alpha 260 v3 17.229 vesc 16.025 r3  104 dist12  199.8  200.0  202.9 time  119 end  1
Alpha 280 v3  2.980 vesc  0.985 r3 3116 dist12  121.4  174.8  217.1 time 1052 end  2
Alpha 300 v3  2.268 vesc  1.045 r3 2765 dist12  141.3  183.8  221.5 time 1163 end  2
Alpha 320 v3  1.661 vesc  1.126 r3 2386 dist12  153.6  190.7  226.3 time 1243 end  2
Alpha 340 v3  1.085 vesc  1.235 r3 1985 dist12  162.2  196.3  230.7 time 1304 end  3
Alpha 360 v3  0.912 vesc  1.266 r3 1881 dist12  166.7  197.3  229.0 time 1318 end  3
NEXT TEST ? 
Table 2
In all the simulations the average distance between m1 and m2 is roughly 200.
The simulations between alpha is 160 and alpha = 200 are the most remarkable. In these cases the minimum distance is roughly 100 and the maximum distance is 300. That means the path of a stable binary star system changes from a circle into an ellipse.
For more detail see Picture 2C

The case with alpha 240 is interesting because m3 is captured and the binary system changes into a threesome. This is a stable configuration. For more detail see Picture 2B


Reflection

What the standard configuration indicates that it is rather simple to have configurations that ejected stars do not follow Hubble's law i.e. that the speed of the ejected star is not a simple function of distance.


Feedback

None


Created 22 Februari 2016

Back to my home page: Contents of This Document